%% This document created by Scientific Word (R) Version 3.0

\documentclass[a4paper,twoside]{book}
\usepackage[latin1]{inputenc}
\usepackage[spanish]{babel}
\usepackage{amsmath}
\usepackage{latexsym}
\usepackage{amsfonts}
\usepackage{amssymb}
\usepackage{graphicx}
%TCIDATA{OutputFilter=latex2.dll}
%TCIDATA{CSTFile=book.cst}
%TCIDATA{LastRevised=Thu Jan 20 17:36:50 2000}
%TCIDATA{<META NAME="GraphicsSave" CONTENT="32">}

\setlength{\oddsidemargin}{0.cm}
\setlength{\evensidemargin}{0.cm}
\setlength{\textwidth}{13.cm}
\setlength{\textheight}{16.cm}
\setlength{\parskip}{0.15cm}
\setlength{\parindent}{0.pt}
\newenvironment{linea}{
\begin{picture}(300,10)
\line(300,0){300}
\end{picture}}{ }
\newenvironment{Ej E/S}
                 {\setlength{\parskip}{0.0cm}}
               {\endlist}
\newenvironment{Lista letras}
               {\list{\alph{letra}.}{
                        \usecounter{letra}
                        \itemsep     0.0cm
                        \itemindent   0.0cm
                        \listparindent 0.0cm
                        \itemindent 0.0cm
                        \rightmargin  0.5cm
                        \leftmargin 0.5cm
                        \labelwidth 0.5cm
                        \parsep 0.0cm
                        \topsep 0.0cm
                        \parskip 0.0cm}}
               {\endlist}
\newenvironment{Programa}
               {\ttfamily\small\list{\arabic{conta}.}{\usecounter{conta}
                        \itemsep     0.0cm
                        \itemindent   0.0cm
                        \listparindent 0.0cm
                        \itemindent 0.0cm
                        \rightmargin  0.7cm
                        \leftmargin 1.0cm
                        \labelwidth 0.5cm
                        \parsep 0.0cm
                        \topsep 0.0cm
                        \parskip 0.0cm}}
               {\endlist}
\newenvironment{Programa-cuadro}
               {\begin{lrbox}{\savepar}
                \begin{minipage}[b]{13.cm}
                \ttfamily\list{\arabic{conta}.}{\usecounter{conta}
                        \itemsep     0.0cm
                        \itemindent   0.0cm
                        \listparindent 0.0cm
                        \itemindent 0.0cm
                        \rightmargin  0.7cm
                        \leftmargin 1.0cm
                        \labelwidth 0.5cm
                        \parsep 0.0cm
                        \topsep 0.0cm
                        \parskip 0.0cm}}
               {\endlist\end{minipage}\end{lrbox}\fbox{\usebox{\savepar}}}
\newenvironment{Lista guiones}{
     \begin{list}{-}{
     \setlength{\leftmargin}{0.5cm}
     \setlength{\labelwidth}{0.5cm}
     \setlength{\parsep}{0.pt}
     \setlength{\topsep}{0.0cm}
     \setlength{\parsep}{0.pt}
     \setlength{\itemsep}{0.pt}
     \setlength{\parskip}{0.pt}}
   }
   {\end{list}}
\newsavebox{\savepar}
\newenvironment{recuadro}{
\begin{lrbox}{\savepar}
\begin{minipage}[b]{13.cm}
}
{\end{minipage}\end{lrbox}\fbox{\usebox{\savepar}}}
\newenvironment{Solucion}{\newline \Large {\textbf {SOLUCI\'ON}}}{ }
\newcommand{\enunciado}{\Large{\textbf{ENUNCIADO}}}

\begin{document}
\newcounter{conta} \newcounter{letra} \setcounter{conta}{1} \setcounter{letra}{1}

{\Large {\textbf{ENUNCIADO}} }

Se tiene un \'{a}rea de memoria, para el mont\'{o}n, de tama\~{n}o 132 bytes,
sobre la que se aplica la t\'{e}cnica de subdivisi\'{o}n fija basada en la
serie finita 4, 8, 16, 28, 48, 80, 132. Los objetos que se van a
alojar/desalojar son (nombre/tama\~{n}o): a/20, b/28, c/18, d/14. En un
momento de la ejecuci\'{o}n del programa el esquema del mont\'{o}n es el siguiente:

\begin{center}%
\begin{tabular}
[c]{|p{0.05in}|p{0.1in}|p{0.05in}|p{0.05in}p{1in}p{0.05in}|}\hline
1 & 28 & 2 &  & c & \\\hline
0 & 16 & 0 &  & \multicolumn{1}{|p{1in}}{} & \multicolumn{1}{|p{0.05in}|}{}%
\\\hline
1 & 28 & 0 &  & b & \\\hline
1 & 28 & 1 &  & a & \\\hline
0 & 16 & 0 &  & \multicolumn{1}{|p{1in}}{} & \multicolumn{1}{|p{0.05in}|}{}%
\\\hline
\end{tabular}
\end{center}

Las instrucciones que se ejecutan tras alcanzar este esquema son:
desalojar b, desalojar a, alojar d. Mostrar cu\'{a}l ser\'{i}a el
esquema del mont\'{o}n tras la ejecuci\'{o}n de las mismas.

{\Large {\textbf{SOLUCI\'{O}N}} }
\end{document}
